<?php
include('config.php');
$id = isset($_POST['id']) ? $_POST['id'] : '';
$where = " buy_goods_id = '{$id}'";

$result = $mysql->delete('buy_goods_log',$where);
if($result){
	echo "1";
}else{
	echo "0";
}
